package com.risenetsoft.elasticsearch.demo;

import javafx.scene.NodeBuilder;
import org.elasticsearch.common.settings.Settings;

/**
 * Created by Zhanggd on 2017/8/10.
 */
public class BootstrapDemo {
    public static final String CLUSTER_NAME = "elasticsearch"; //实例名称
    private static final int PORT = 9300;  //端口
    private static final String IP = "192.168.190.104";

    Settings settings = Settings.builder()
            .put("cluster.name",CLUSTER_NAME)
            .put("client.transport.sniff",true)
            .put("client.transport.ping_timeout", "120s")
            .build();

    NodeBuilder nodeBuilder = NodeBuilder.nodeBuilder().settings(settings);
}
